import request from '@/utils/request'


//保存短信模板
export function SaveMessageTempalte(params){
   return request({
    url: '/MessageTemplateNew/SaveMessageTemplateNew',
    method: 'POST',
    data: params
  })
}




export function GetMessageTempaltePage(params){
  return request({
    url: '/MessageTemplateNew/GetIMessageTemplateNew',
    method: 'get',
    params: {
        pageIndex: params.pageIndex,
        pageSize: params.pageSize,
        key: params.key
    }  
  })
}


export function DeleteMessageTemplate(id) {
  return request({
    url: `/api/MessageTemplateNew/DeleteMessageTemplate`,
    method: 'get',
    params: {
      id: id
    }
  })
}